# -*- coding:utf-8 -*-
# info = [{'k1': (1), 'k2': {'k9': 'luffy', 'k10': '武沛齐'}},
# 		(11, 22, 33, 44),
# 		{199, 2, 3, 4, 5},
# 		True,
# 		['李杰', 'alex', {'extra': ("alex", [18, 20], 'eric')}]]
# print(info[0]['k2']['k9'])
# print(info[1][3])
# del info[0]['k2']['k10']
# info[4][2].setdefault("name", "wupeiqi")
# info[2].add("北京")
# info[3] = "真"
# info[4][2]['extra'][1].insert(0, 666)
# print(info)
# v1 = (11, 22, 33)
# v2 = (11)
# v3 = {11, 2, 33}
# v4 = {11, 2, ("alex", "eric"), 33}
# # v5 = {11, 2, ("alex", {"北京", "上海"}, "eric"), 33}
# print(v1)
# print(v2)
# print(v3)
# print(v4)
# print(v5)
# v1 = [11,22,33]
# v2 = [11,22,33]
# v1.append(666)
# print(v1)  # [11, 22, 33, 666]
# print(v2)  # [11, 22, 33]
# v1 = [11,22,33]
# v2 = v1
# v1.append(666)
#
# print(v1)  # [11, 22, 33, 666]
# print(v2)  # [11, 22, 33, 666] 为什么

# v1 = [1,2,3,4,5]
# v2 = [v1,v1,v1]
# v2[1][0] = 111
# v2[2][0] = 222
# print(v1)  # [222,2,3,4,5]
# print(v2)  # [[222, 2, 3, 4, 5], [222, 2, 3, 4, 5], [222, 2, 3, 4, 5]]

# input_str = []
# while True:
# 	user_input = input("随便输入:").strip()
# 	if user_input.upper() == "Q":
# 		break
# 	input_str.append(user_input)
#
# print("_".join(input_str))

"""
如 10.3.9.12 转换规则为：
     10            00001010
      3             00000011
      9             00001001
     12            00001100
再将以上二进制拼接起来，然后再进行一次翻转。

最终将翻转之后的二进制转换为整型。
"""
# ip_address = "10.3.9.12"
# str = ""
# for num in ip_address.split("."):
# 	str += bin(int(num))[2:].zfill(8)
# print(int(str[::-1],base=2))

# car_list = ['鲁A32444', '沪B12333', '京B8989M', '京C49678', '黑C46555', '晋B25041', '沪C34567']
#
# # 根据以上代码获取各省车牌数量，例如：info = {"沪":2,"京":2 ...}
# dic = {}
# for item in car_list:
# 	dic[item[0:1]] = item[1:]
# print(dic)
text = """id,name,age,phone,job
1,alex,22,13651054608,IT 
2,wusir,23,13304320533,Tearcher
3,老男孩,18,1333235322,IT"""

# 将上述数据处理为如下格式的结果：
#    info = [{'id':'1','name':'alex','age':'22','phone':'13651054608','job':'IT'},.... ..]
# 提示：text的内容是根据 \n 分割（\n表示回车换行）。
# txt_list = text.split("\n")
# head_list = txt_list[0].split(",")
# info = []
# for index in range(1,len(txt_list)):
# 	item = {}
# 	row = txt_list[index].split(",")
# 	for i in range(len(row)):
# 		item[head_list[i]] = row[i]
# 	info.append(item)
# print(info)
"""
content = input("请输入内容:") # 用户可能输入 5*9*99.... 或 5* 9 * 10 * 99 或 5 * 9 * 99...
"""
# 补充代码实现

# input_str = input("请输入内容:").strip()
# list_num = input_str.split("*")
# result = 1
# for item in list_num:
# 	result *= int(item)
# print(result)

# for i in range(1,10):
# 	for j in range(1,10):
# 		if  i >= j:
# 			print("{}*{}={}".format(i,j,i*j),end = " ")
# 	print()


